<%-- 
    Document   : admin_suathongtints
    Created on : Oct 7, 2012, 3:37:32 PM
    Author     : TienNT
--%>

<%@page import="tuyensinh.ThiSinh"%>
<%@page import="tuyensinh.BangDiem"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="admin_menu.jsp" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form action="/TuyenSinh/XuLy" method="post">
            Nhap so bao danh cua thi sinh: 
            <input type="text" name="sbd">
            <input type="hidden" name="yc" value="admin_suatsinfo_sbd">
            <input type="submit" value="Tim thi sinh">
        </form>
        <br>
        <br>
        <%
            String tb = (String) request.getAttribute("tb");
            if (tb == null) {
                tb = "";
            }
            ThiSinh ts = (ThiSinh) request.getSession().getAttribute("thisinh");
            String status = "table";
            String sbd = "";
            String manganh = "", hoten = "", makhuvuc = "", madoituong = "", ngaysinh = "";
            if (ts == null) {
                status = "none";
            } else {
                sbd = ts.getSbd();
                hoten = ts.getHoten();
                ngaysinh = ts.getNgaysinh();
                manganh = ts.getMaNganh();
                madoituong = ts.getMadoituong();
                makhuvuc = ts.getMakhuvuc();
            }
        %>
        <%=tb%>
        <br>
        <form action="/TuyenSinh/XuLy" method="post">
            <table style="display: <%=status%>">
                <tbody>
                    <tr>
                        <th>So bao danh: </th>
                        <td><%=sbd%></td>
                    </tr>
                    <tr>
                        <th>Ho ten: </th>
                        <td><input type="text" name="hoten" value="<%=hoten%>"></td>
                    </tr>
                    <tr>
                        <th>Ngay sinh: </th>
                        <td><input type="text" name="ngaysinh" value="<%=ngaysinh%>"></td>
                    </tr>
                    <tr>
                        <th>Ma nganh: </th>
                        <td><input type="text" name="manganh" value="<%=manganh%>"></td>
                    </tr>
                    <tr>
                        <th>Ma khu vuc: </th>
                        <td><input type="text" name="makhuvuc" value="<%=makhuvuc%>"></td>
                    </tr>
                    <tr>
                        <th>Ma doi tuong: </th>
                        <td><input type="text" name="madoituong" value="<%=madoituong%>"></td>
                    </tr>
                    <tr>
                        <td colspan="2" style="text-align: center">
                            <input type="hidden" name="sbd" value="<%=sbd%>">
                            <input type="hidden" name="yc" value="admin_suatsinfo_info">
                            <input type="submit" value="Sua thong tin thi sinh">
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </body>
</html>
